package xgenerator.generators.jgenerator;

import xgenerator.generators.ViewGenerator;
import xgenerator.model.ModelMetadata;

/**
 * <p>
 * Title:JspGenerator
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company: liss
 * </p>
 * @author <a href="mailto:shushanlee@msn.com">liss</a>
 * @version 1.0
 * @see 
 * @since   1.0
 */
public interface JSPGenerator extends ViewGenerator {
	
	/*
	 * web文件扩展名
	 */
	public static final String JSP_EXT = ".jsp";
	
	/*
	 * web代码目录名
	 */
	public static String WEB_JSP_DIR = "jsp";
	
	/*
	 * 页面
	 */
//	public static final String CREATE_PREFIX = "create";
//	public static final String EDIT_PREFIX = "edit";
//	public static final String DETAIL_PAGE_SUFFER = "Detail";  //查看详细信息
//	public static final String GRID_PAGE_SUFFER = "Grid";  //表格列表
//	public static final String TREE_SUFFER = "Tree";  //树
	
	public String generateCreatePageCode(ModelMetadata modelMetadata);
	public String generateEditPageCode(ModelMetadata modelMetadata);
	public String generateViewPageCode(ModelMetadata modelMetadata);
	public String generateGridPageCode(ModelMetadata modelMetadata);

}
